* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function):
authorDmitry Gutov <dgutov@yandex.ru>
Fri, 14 Dec 2012 06:58:15 +0000 (10:58 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Fri, 14 Dec 2012 06:58:15 +0000 (10:58 +0400)
commit2a50a2d55af626ae07428f06006d00e5e28ee1e1
tree49fb7332f183cc06cf10e54031d901e4cf7354c4
parente22ad95417a1efb12e3acf35342dfad466616900
* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function):
Extract `ruby-syntax-propertize-expansions'.
(ruby-syntax-propertize-expansions): Only change syntax on
certain string delimiters, to punctuation.  This way the common
functions like forward-word and thing-at-point still work.
(ruby-match-expression-expansion): Improve readability.
(ruby-block-contains-point): New function.
(ruby-add-log-current-method): Handle several edge cases.

* test/automated/ruby-mode-tests.el
Rename one interpolation test; add three more.
(ruby-with-temp-buffer): New macro, use it where appropriate.
(ruby-add-log-current-method-examples): Use "_" for target point.
Add four tests for ruby-add-log-current-method.
lisp/ChangeLog
lisp/progmodes/ruby-mode.el
test/ChangeLog
test/automated/ruby-mode-tests.el